package com.rui.study.micro.shoppingbag;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Select;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.context.ConfigurableApplicationContext;

@Slf4j
@SpringBootApplication
@EnableFeignClients
public class ShoppingBagApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(ShoppingBagApp.class);
//        SimpleMessageListenerContainer sml = ctx.getBean(SimpleMessageListenerContainer.class);
//        LOGGER.info("sml --> {}", sml);
        FeignClientProperties feignClientProperties = ctx.getBean(FeignClientProperties.class);
        log.info(String.valueOf(feignClientProperties));
    }
}
